﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using WinHBM.Core.module;

namespace WinHBM.Core.Net.Sockets.Cmd
{
    public class BabyCountCmd : SocketCmd
    {

        private static readonly log4net.ILog Logger = log4net.LogManager.GetLogger(typeof(LogCmd));

        public override void executeCmd(JObject request, FlashSocketServer socket)
        {
            JObject data = new JObject();
            data["count"] = Baby.Count();
            socket.Send(wrapCmd(CMD_BABY_COUNT,data));
        }
    }
}
